package com.lb.jwitter;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.ForeignKey;

@Entity
@Table (name="tbl_QLDTTXA_LopMonHoc_DuKien")
public class Tbl_QLDTTXA_LopMonHoc_DuKien implements Serializable {
   private static final long serialVersionUID = -1989579066723007050L;

   private Long id;
   private String maLop;
   private Tbl_QLDTTXA_MonHoc monHocId = null;
   private Tbl_QLDTTXA_HocKyTrongNam hocKyId = null;
   private Tbl_QLDTTXA_GiaoVien giaoVienId = null;
   private String ghiChu;
   private Boolean duocMo;

   @Id
   @GeneratedValue
   public Long getId() {
	    return id;
   }
   public void setId(Long id) {
	    this.id= id;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="monHocId")
   @ForeignKey(name="FK_tbl_QLDTTXA_MonHoc_tbl_QLDTTXA_LopMonHoc_DuKien")
   public Tbl_QLDTTXA_MonHoc getMonHocId() {
	    return monHocId;
   }
   public void setMonHocId(Tbl_QLDTTXA_MonHoc monHocId) {
	    this.monHocId=monHocId;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="hocKyId")
   @ForeignKey(name="FK_tbl_QLDTTXA_HocKyTrongNam_tbl_QLDTTXA_LopMonHoc_DuKien")
   public Tbl_QLDTTXA_HocKyTrongNam getHocKyId() {
	    return hocKyId;
   }
   public void setHocKyId(Tbl_QLDTTXA_HocKyTrongNam hocKyId) {
	    this.hocKyId=hocKyId;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="giaoVienId")
   @ForeignKey(name="FK_tbl_QLDTTXA_GiaoVien_tbl_QLDTTXA_LopMonHoc_DuKien")
   public Tbl_QLDTTXA_GiaoVien getGiaoVienId() {
	    return giaoVienId;
   }
   public void setGiaoVienId(Tbl_QLDTTXA_GiaoVien giaoVienId) {
	    this.giaoVienId=giaoVienId;
   }

   public String getGhiChu() {
   	return ghiChu;
   }
   public void setGhiChu(String ghiChu) {
   	this.ghiChu= ghiChu;
   }

   public Boolean getDuocMo() {
   	return duocMo;
   }
   public void setDuocMo(Boolean duocMo) {
   	this.duocMo= duocMo;
   }
public String getMaLop() {
	return maLop;
}
public void setMaLop(String maLop) {
	this.maLop = maLop;
}
}//endClass 

